package day02;

public class SwitchTest{
	public static void main(String[]args){
		int i = 7;
		switch(i){
			case 1:
				System.out.println("i=1");
			case 2:
				System.out.println("i=2");
				break;
			case 3:
				System.out.println("i=3");
				break;
			case 4:
			case 5:
			case 6:
			//case 4,5,6:
				System.out.println("other");
				break;
			default:
				System.out.println("default");
		}
		char c = 'A';
		switch(c+1){
			case 'A':
				System.out.println('A');
				break;
			case 'B':
				System.out.println('B');
				break;
			case 'C':
				System.out.println('C');
				break;
		}
/*	
		String s="A";
		switch(s){
			case "A":
				System.out.println('A');
				break;
			case "B":
				System.out.println('B');
				break;
			case "C":
				System.out.println('C');
				break;
		}
		*/
	}
}